package edu.whcp.comp2301.mapper;

import edu.whcp.comp2301.pojo.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NewsMapper {
    public List<News> getNewsList(@Param("category") String category,@Param("title") String title);

    public List<News> getNews(String id);

    public void addNews(News news);

    public Integer delNews(@Param("id") String id);

    public List<News> getNewsHomepageList();

    public void editNews(News news);

    public List<News> getNewsListPage(@Param("category") String category);
}
